export default [
  {
      path: '/',
      redirect:'/login'
  },
  {
    // 登录
    path:'/login',
    component:()=>import('../components/UserLogin')
  },
  // 进入系统
  {
    path:'/sys',
    component:()=>import('../components/Sys'),
    redirect:'/sys/main',
    children:[
      {
        // 首页 展示产品数量等信息
        path:'main',
        component:()=>import('../pages/MainPage'),
        meta:{title:'首页'},
      },
      
      {
        // 商品查看
        path:'goodsEdit',
        component:()=>import('../pages/goodsEdit'),
        meta:{title:'商品展示'},
      
      },
      // 商品添加
      {
        path:'goodsAdd',
        component:()=>import('../pages/goodsAdd'),
        meta:{title:'商品添加'}
      },
      {
        // 订单管理
        path:'orderDeliver',
        component:()=>import('../pages/orderDeliver'),
        meta:{title:'订单发货'},
      
      }
    ]
  },
  
]